package com.design_pattern._02_structure._07_adapter;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStreamReader;

public class Adapter {
    public static void main(String[] args) throws FileNotFoundException {
        // FileInputStream读取的是字节，我们想通过行读取字符，使用BufferedReader，这时候不相通，需要用到转换器
        FileInputStream fileInputStream = new FileInputStream("");
        InputStreamReader reader = new InputStreamReader(fileInputStream);
        BufferedReader bufferedReader = new BufferedReader(reader);
    }
}
